POV-Ray : Newsgroups : povray.advanced-users : Geometry question : Re: Geometry question Server Time
30 Jul 2024 08:23:37 EDT (-0400)
  Re: Geometry question  
From: Kevin Wampler
Date: 8 Dec 1999 01:28:31
Message: <3876DA06.B2A9AC10@tapestry.tucson.az.us>
Mark Wagner wrote:

> Given the centers and radii of two overlapping spheres, what is the equation
> for the circle where the two spheres intersect?  I need this for a project
> I'm working on.
>
> Mark

What form do you need this equation in?

If r1 and r2 are the radii of the two spheres and d is the distance between
their centers, then the radius of the circle of their intersection should be:

sqrt(-(d+r1+r2)*(d-r1+r2)*(d+r1-r2)*(d-r1-r2))/(2*d)

This circle will be centered on the line connecting the centers of the spheres
and will be

(d+r1-r2)/2

units away from the center of the first sphere and

(d+r2-r1)/2

units away from the center of the second sphere.  The circle will also be
oriented so that it is orthogonal to the line connecting the centers of the
spheres.

I hope that this is helpful.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.